package com.xm.settlement.service.impl;

import com.baomidou.framework.service.impl.SuperServiceImpl;
import com.baomidou.mybatisplus.plugins.Page;
import com.xm.settlement.commons.utils.PageInfo;
import com.xm.settlement.mapper.AppStockLogMapper;
import com.xm.settlement.model.AppStockLog;
import com.xm.settlement.service.IAppStockLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 * AppStockLog 表数据服务层接口实现类
 *
 */
@Service
public class AppStockLogServiceImpl extends SuperServiceImpl<AppStockLogMapper, AppStockLog> implements IAppStockLogService {

    @Autowired
    private AppStockLogMapper appStockLogMapper;

    @Override
    public void selectDataGrid(PageInfo pageInfo,Long Lid) {
        Page<AppStockLog> page = new Page<AppStockLog>(pageInfo.getNowpage(), pageInfo.getSize());
        List<AppStockLog> list = appStockLogMapper.selectAppStockLogList(page,Lid);
        pageInfo.setRows(list);
        pageInfo.setTotal(page.getTotal());
    }
}